package marmalius.craft.firemaking;

import marmalius.Player;
import marmalius.craft.GoalInfo;
import marmalius.player.SkillType;

public class FireInfo extends GoalInfo {
	private int burnTime;
	private int itemID;
	private int lvlReq;
	//public int playerId; //ash
	
	public FireInfo (Player player, int itemID) {
    	switch (itemID) {
			case 1511:
				experience = 40;
		    	burnTime = 50000;
		    	this.itemID = 1511;
		    	lvlReq = 1;
		    	makeTime = (10 - player.getSkillLevel(SkillType.FIREMAKING) / 4) * 1000;
				break;
			case 1521:
				experience = 60;
				burnTime = 50000;
		    	this.itemID = 1521;
		    	lvlReq = 15;
		    	makeTime = (12 - player.getSkillLevel(SkillType.FIREMAKING) / 4) * 1000;
				break;
			case 1519:
				experience = 90;
				burnTime = 50000;
		    	this.itemID = 1519;
		    	lvlReq = 30;
		    	makeTime = (14 - player.getSkillLevel(SkillType.FIREMAKING) / 4) * 1000;
				break;
			case 1517:
				experience = 135;
				burnTime = 50000;
		    	this.itemID = 1517;
		    	lvlReq = 45;
		    	makeTime = (16 - player.getSkillLevel(SkillType.FIREMAKING) / 4) * 1000;
				break;
			case 1515:
				experience = 202;
				burnTime = 50000;
		    	this.itemID = 1515;
		    	lvlReq = 60;
		    	makeTime = (18 - player.getSkillLevel(SkillType.FIREMAKING) / 4) * 1000;
				break;
			case 1513:
				experience = 303;
				burnTime = 50000;
		    	this.itemID = 1513;
		    	lvlReq = 75;
		    	makeTime = (20 - player.getSkillLevel(SkillType.FIREMAKING) / 4) * 1000;
		    	break;
			default :
				experience = 0;
				burnTime = 0;
		    	this.itemID = 0;
		    	lvlReq = 0;
		    	makeTime = 0;
		}
    	if (makeTime < 0)
    		makeTime = 0;
    }
	
	public int getReqLevel() { return lvlReq; }
	public int getBurnTime() { return burnTime; }
	public int getItemID() { return itemID; }
	
}
